package com.xxl.dto;

import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * 爱好类
 * @author xxl
 * @date 2023/3/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Hobby {
    @Length(min = 1,max = 2,message = "最大字符长度不可超过3个")
    private String firstHobby;
    @Length(min = 1,max = 2,message = "最大字符长度不可超过3个")
    private String secondHobby;
    @Length(min = 1,max = 2,message = "最大字符长度不可超过3个")
    private String thirdHobby;

}
